﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>

<div class="layout-cols2">

<script type="text/javascript">
    
function checkCheckBox(form,objtag)
{
	if (typeof(objtag.checked) == "undefined")
	{
	objtag.checked = true;
	}
	for(var i = 0; i < form.elements.length; i++) 
	{
		var e = form.elements[i];
		if(e.name == "logitem") 
		{
			e.checked = objtag.checked;
		}
	}
	objtag.checked = !objtag.checked;
}
	

</script>
	
	<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
			<div class="panneltabs">
			 <%template _logmenu%>
	
				</div>	
          <div class="pannelbody">
	
	<%csharp%>if(IsPost){ <%/csharp%>
	    <%template _MsgBox%>
	<%csharp%> }  else { <%/csharp%>

		<div class="content">
			    
				<div class="loglist">


<%if LogDataList.Count==0%>			
      <h2 style="padding:10px; text-align:center;">暂无日志</h2>
<%else%>    
    <form id="logform" name="logform" method="post" action="">  	    
				<%csharp%>
				foreach(LogTopicInfo item in LogDataList) { <%/csharp%>
				    <li  style=" background-color:#DBEDF6;">
				    <input type="checkbox" id="log_{item.Id}" name="logitem"  value="{item.Id}" />
				        <%csharp%>TempUrl=this.GetUrl("/User/Log.aspx?lid=" + item.Id); <%/csharp%>
				        <a href="{TempUrl}">{item.Title}</a>
				        <span>[浏览:{item.Hits} &nbsp;评论:{item.ReplyCount}]
				        
				        &nbsp;
				         <%csharp%> TempUrl = "/User/LogEdit.aspx?lid=" +item.Id;<%/csharp%>
				        <a href="{this.GetUrl(TempUrl)}">编辑</a>&nbsp;
				        <%csharp%> TempUrl = "/User/LogDel.aspx?lid=" +item.Id;<%/csharp%>
				        <a href="#" onclick="if(window.confirm('删除日志将同时删除该日志全部评论，确定删除？')) window.location.href='{this.GetUrl(TempUrl)}';">删除</a>
				        </span>
				        
				    </li> 
	
    			<%csharp%>}<%/csharp%>
   </form> 			
 <%/if%>   			
			    </div>
			    
			</div>

<p class="operate">
<a href="#"onclick="checkCheckBox(_$('logform'),this)">全选/全不选</a>&nbsp;

<a href="#" onclick="_$('logform').submit();">删除</a>
</p>

		<div class="content">
			<div class="pages">
				{PagingString}
			</div>
		</div>

	
	<%csharp%> } <%/csharp%>
	
</div>
</div>
</div>
</div>
</div>

<%template _footer%>		
